package com.finance.system.service;

import com.finance.system.bean.pojo.Carrier;
import com.finance.system.dao.CarrierMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: gly
 * @Date: Created in 2017-08-07
 */
@Service
public class CarrierService implements ICarrierService {
    @Autowired
    private CarrierMapper carrierMapper;
    @Override
    public List<Carrier> listAll() {
        return carrierMapper.listAll();
    }
    @Override
    public String getCodeByName(String name) {
        return carrierMapper.getCodeByName(name);
    }

    @Override
    public List<Carrier> list() {
        return  carrierMapper.list();
    }
}
